/* Copyright (c) 2006, 2009, Carl Burch. License information is located in the
 * com.cburch.logisim.Main source code and at www.cburch.com/logisim/. */
 
package com.cburch.logisim.collections;

import java.util.AbstractList;

public class UnmodifiableList extends AbstractList {
    private Object[] data;
    
    public UnmodifiableList(Object[] data) {
        this.data = data;
    }

    public Object get(int index) {
        return data[index];
    }

    public int size() {
        return data.length;
    }
}
